package com.qfedu;

import com.qfedu.mapper.ProjectMapper;
import com.qfedu.model.Contractor;
import com.qfedu.model.Project;
import com.qfedu.service.IContractorService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * 概述:
 *
 * @Author: Tbh
 * @Date: 2022/6/27 12:39
 */

@SpringBootTest(classes = ProjectApplication.class)
public class Demos {

    @Autowired
    private ProjectMapper projectMapper;

    @Autowired
    private IContractorService contractorService;

    @Test
    public void  demo01(){
        List<Project> projects = projectMapper.findAll();
        for (Project project : projects) {
            System.out.println(project);
        }
    }

    @Test
    public void  demo02(){
        Contractor byCid = contractorService.findByCid("69c3335642d54d81ad50fbc5b8bb972f");
        System.out.println(byCid);
    }
}
